|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.hierarchy.HierarchyNode
j3deditor.bin.hierarchy.J3DeCamera
public class J3DeCamera
Virtual camera that manages an instance of
com.sun.j3d.utils.universe.ViewingPlatform
bounded to this camera and manipulates its
javax.media.j3d.TransformGroup object.
ViewingPlatform| Constructor Summary | |
|---|---|
J3DeCamera()
Creates an instance of J3DeCamera. |
|
| Method Summary | |
|---|---|
void |
moveFocus(float move1,
float move2)
Moves the virtual focus of the camera. |
void |
readData(java.io.InputStream in)
Reads bytes from the given InputStream and tries
to convert them to the attributes. |
void |
resetCameraPosition()
Resets the position and orientation of this camera. |
void |
rotateCamera(float angle,
float angleZ)
Rotates the camera. |
void |
setCamera(com.sun.j3d.utils.universe.ViewingPlatform cam)
Bounds the given ViewingPlatform to
this virtual camera. |
void |
zoomCamera(float zoom)
Zooms the camera in/out. |
void |
writeData(java.io.OutputStream out)
Writes the camera attributes to the given OutputStream
as byte arrays. |
| Methods inherited from class j3deditor.bin.hierarchy.HierarchyNode |
|---|
clone, equals, getChild, getIndex, getIndexOfChild, getNumberOfChildren, getParent, getParent, getType, hasNamedChild, removeChild, setName, setParent, toString, updateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public J3DeCamera()
J3DeCamera.
| Method Detail |
|---|
public void setCamera(com.sun.j3d.utils.universe.ViewingPlatform cam)
ViewingPlatform to
this virtual camera.
cam - ViewingPlatform to be bounded
public void moveFocus(float move1,
float move2)
moveFocus in interface VirtualCameramove1 - movement of the focus along the X-axis of the camera.
Difference, not absolute positionmove2 - movement of the focus along the Y-axis of the camera.
Difference, not absolute positionpublic void zoomCamera(float zoom)
zoomCamera in interface VirtualCamerazoom - the amount to zoom
public void rotateCamera(float angle,
float angleZ)
rotateCamera in interface VirtualCameraangle - rotation around the Y-axis of the scene.
Difference, not absolute angleangleZ - the change of the angle of the X-axis of camera.
Difference, not absolute angle
public void writeData(java.io.OutputStream out)
throws java.lang.Exception
OutputStream
as byte arrays.
writeData in interface J3DeSerializableout - stream to be written to
java.lang.Exception - if unable to write to the given stream
public void readData(java.io.InputStream in)
throws java.lang.Exception
InputStream and tries
to convert them to the attributes.
readData in interface J3DeSerializablein - stream to be read from
java.lang.Exception - if unable to read from the given
stream or unable to convert the byte arrays to attributespublic void resetCameraPosition()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||